package day02;

import org.junit.Test;

/**
 * 将字符串"123abc456def789ghi"中的英文部分替换为"#char#"
 * @author Bonnie
 *
 */
public class Test04 {
	@Test
	public void test() {
		String str = "123abc456def789ghi";// [a-zA-Z]{1,}
		str = str.replaceAll("[a-zA-Z]{1,}", "#char#");
		System.out.println(str);
	}
}
